<?xml version="1.0" encoding="UTF-8"?>
<validateThis xsi:noNamespaceSchemaLocation="http://www.validatevariables.org/validateThis.xsd"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <conditions>
        <condition name="isTranslator"
                   serverTest="getTranslator() EQ true"/>
    </conditions>
    <objectProperties>
        <!-- Boolean: Missing value equates to false, no need to add required rules -->
        <property name="Deleted">
            <rule type="boolean" contexts="*" />
        </property>
		 <property name="Pool">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Translator">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Finance_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="FAFSA_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Financial_Aid_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Tax_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Outreach_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="AB540_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Technology_Expert">
            <rule type="boolean" contexts="*" />
        </property>
        <property name="Student">
            <rule type="boolean" contexts="*" />
        </property>
        <!-- Strings -->
        <property name="First_Name">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="3" />
            </rule>
        </property>
        <property name="Last_Name">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="3" />
            </rule>
        </property>
        <property name="Title">
            <rule type="minLength" contexts="*">
                <param name="minLength" value="3" />
            </rule>
        </property>
        <property name="Organization">
            <rule type="minLength" contexts="*">
                <param name="minLength" value="3" />
            </rule>
        </property>
        <property name="Address">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="3" />
            </rule>
        </property>
        <property name="City">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="3" />
            </rule>
        </property>
        <property name="Zip_Code">
            <rule type="required" contexts="*" />
            <rule type="postalcode" contexts="*" />
        </property>
        <property name="Phone">
            <rule type="telephone" contexts="*" />
        </property>
        <property name="Email">
            <rule type="required" contexts="*" />
            <rule type="email" contexts="*" />
        </property>
        <property name="Translator_Languages">
            <rule type="required" condition="isTranslator" contexts="*" />
        </property>
        <property name="Shirt_Size">
            <rule type="required" contexts="*" />
            <rule type="minLength" contexts="*">
                <param name="minLength" value="1" />
            </rule>
        </property>
        <!-- integers -->
        <property name="Volunteer_ID">
            <rule type="required" contexts="*" />
            <rule type="integer" contexts="*" />
        </property>
        <property name="Organization_ID">
            <rule type="required" contexts="*" />
            <rule type="integer" contexts="*" />
            <rule type="min" contexts="*">
                <param name="min" value="1" />
            </rule>
        </property>
		<property name="County_ID">
            <rule type="required" contexts="*" />
            <rule type="integer" contexts="*" />
            <rule type="min" contexts="*">
                <param name="min" value="1" />
            </rule>
        </property>
        <property name="Travel_Distance">
            <rule type="required" contexts="*" />
            <rule type="integer" contexts="*" />
        </property>
    </objectProperties>
</validateThis>
